<?php


namespace App\Validators;


class GroupValidator extends BaseValidator
{
    protected $rules = [
        'groupName' => ['required'],
        'userId' => ['required'],
    ];
    protected $msgs = [
        'groupName.required' => '群名称必填',
        'userId.required' => '群主ID有误',
    ];
    protected $scenes = [
        'groupAdd' => ['groupName', 'userId'],
    ];
}
